import 'inner_acct_payfirst_entity.dart';
import 'zfb_payall_entity.dart';

class PayCaseEntity {
  String shopPrice;
  String selPayOption;
  ZfbPayAllEntity zfbPayAll;
  InnerAcctPayFirstEntity innerAcctPayFirst;

  PayCaseEntity(
      {this.shopPrice,
      this.selPayOption,
      this.zfbPayAll,
      this.innerAcctPayFirst});

  PayCaseEntity.fromJson(Map<String, dynamic> json) {
    shopPrice = json['shopPrice'];
    selPayOption = json['selPayOption'];
    zfbPayAll = json['zfbPayAll'] != null
        ? new ZfbPayAllEntity.fromJson(json['zfbPayAll'])
        : null;
    innerAcctPayFirst = json['innerAcctPayFirst'] != null
        ? new InnerAcctPayFirstEntity.fromJson(json['innerAcctPayFirst'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['shopPrice'] = this.shopPrice;
    data['selPayOption'] = this.selPayOption;
    if (this.zfbPayAll != null) {
      data['zfbPayAll'] = this.zfbPayAll.toJson();
    }
    if (this.innerAcctPayFirst != null) {
      data['innerAcctPayFirst'] = this.innerAcctPayFirst.toJson();
    }
    return data;
  }
}
